package com.heima.comment.pojos;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.Date;

@Data
@Document(collection = "ap_comment_repay")
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ApCommentRepay implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private String id;

    /**
     * 作者ID
     */
    private Integer authorId;

    /**
     * 作者名称
     */
    private String authorName;

    /**
     * 评论ID
     */
    private String commentId;

    /**
     * 评论内容
     */
    private String content;


    /**
     * 点赞量
     */
    private Integer likes;

    /**
     * 更新时间
     */
    private Date updatedTime;

    /**
     * 创建时间
     */
    private Date createdTime;

}
